﻿<UserControl   x:Class="TestUI.Page"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:SLPropertyGrid="clr-namespace:SLPropertyGrid;assembly=SLPropertyGrid" 
    Width="600" Height="400">
    <Grid  x:Name="LayoutRoot" Background="White" BindingValidationError="LayoutRoot_BindingValidationError" 
 
    >
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto"></RowDefinition>
			<RowDefinition Height="*"></RowDefinition>
			<RowDefinition Height="Auto"></RowDefinition>
		</Grid.RowDefinitions>
		<Grid.ColumnDefinitions>
			<ColumnDefinition  />
			<ColumnDefinition />
		</Grid.ColumnDefinitions>
		<TextBlock >This PropertyGrid is bound to the button below</TextBlock>
		<TextBlock Grid.Column="1" >This PropertyGrid is bound to a custom object</TextBlock>
		<SLPropertyGrid:PropertyGrid x:Name="propGrid" Grid.Row="1" Margin="3" />
		<Button Content="Just for test" x:Name="theButton" Grid.Row="2" Click="theButton_Click" Height="20" Margin="5" />

		<SLPropertyGrid:PropertyGrid x:Name="propGrid2" Grid.Column="1" Grid.Row="1" Margin="3" />
    </Grid>
</UserControl>
